// JavaScript Document
/*门牌证管理页面下拉框*/
$("#zhankaibtn").click(function(){
	if($(this).hasClass("zhankaibtnopen")){
		 $("#leftpannel").css({width:'50px'});
		 $("#rightpannel").css({left:'50px'});
		 $(this).removeClass("zhankaibtnopen");
		}
		else{
			 $("#leftpannel").css({width:'200px'});
			 $("#rightpannel").css({left:'200px'});
		    $(this).addClass("zhankaibtnopen");
			}
	
	})
$("#secondcollapse").click(function(){

			$("#secondcollapse").css({left:'-30px'});	
	        $("#mapquqiehuanbox").css({left:'70px'});	
			 $("#erjimenu").css({width:'0px'});
			 $("#erjimenu").css({padding:'0px'});
			 $(".contentbox").css({left:'0px'});
			 $("#secondcollapsetable").css({display:'block'});
	
	})
$("#secondcollapsetable").click(function(){
	     $("#secondcollapsetable").css({display:'none'});
	     $("#mapquqiehuanbox").css({left:'411px'});	
	     $("#secondcollapse").css({left:'380px'});
		 $("#erjimenu").css({padding:'10px'});
		 $("#erjimenu").css({width:'410px'});

		 $(".contentbox").css({left:'410px'});
	})
$(".zixitongmenu").click(function(){
	$("#zixitongactive").removeAttr("id");
	$(this).attr("id","zixitongactive");
	})
$(".toperjili").click(function(){
	$("#tabmenuactive").removeAttr("id");
	$(this).attr("id","tabmenuactive");
	})

$("#mapresultclose").click(function(){
	$("#searchresult-container").css("display","none");
	})
$("#search-button").click(function(){
	$("#searchresult-container").css("display","block");
	})
$("#mapsearchchange").click(function(){
	if($("#mapsearchchange").hasClass("dituchaxun")){
		$("#mapsearchchange").removeClass("dituchaxun");
		$("#mapsearchchange").addClass("ziyuanmulu");
		$("#qiehuanbtn").text("地图查询");
		$("#ziyuanmulubox").css("display","block");
		$("#dituchaxun").css("display","none");
		$("#ziyuanmulu").css("display","block");
		}
	else{
		$("#mapsearchchange").removeClass("ziyuanmulu");
		$("#mapsearchchange").addClass("dituchaxun");
		$("#qiehuanbtn").text("资源目录");
		$("#ziyuanmulu").css("display","none");
		$("#dituchaxun").css("display","block");
		}
	})
$("#fenlei").click(function(){
	if($("#fenlei").hasClass("fenlei-button")){
		$("#fenlei").removeClass("fenlei-button");
		$("#fenlei").addClass("fenleiclose-button");
		$("#fenleibtn").text("关闭");
		$("#map-input").css("border-bottom","1px solid #ddd");
		$("#fenleibox").css("display","block");
		}
	else{
		$("#fenlei").removeClass("fenleiclose-button");
		$("#fenlei").addClass("fenlei-button");
		$("#fenleibtn").text("分类查询");
		$("#map-input").css("border-bottom","1px solid #fff");
		$("#fenleibox").css("display","none");
		}
	})
	
$(".fenlei-button").hover(function(){
	$("#fenleibtn").toggle();})
$("#ziyuanmuluclose").click(function(){
	$("#ziyuanmulubox").css("display","none");
	})	
	
	
/****提示****/
$(".tipli").hover(function(){
	if($("#zhankaibtn").hasClass("zhankaibtnopen")==false)
	{
		var tipname=$(this).find(".tiptext").first().text();
		$("#").text(tipname);
		var offsety=$(this).offset().top;
		$("#").css("top",offsety);
		$("#").show();
		}
	},function(){
		$("#").hide();})
$(".dianji").click(function(){
	$("#mapquqiehuanbox").css("display","block");
})

$("#maplanjie").click(function(){
	$(".gongjutxt").css("color","#666");
	$(this).children(".gongjutxt").css("color","#0071f7");
	$("#shuxing").css("display","none");
	$("#guanliandimingxinxi").css("display","none");
	$("#shujuguanlimaparea").css("display","block");
})
$("#shuxinglianjie").click(function(){
	$(".gongjutxt").css("color","#666");
	$(this).children(".gongjutxt").css("color","#0071f7");
	$("#shujuguanlimaparea").css("display","none");
	$("#guanliandimingxinxi").css("display","none");
	$("#shuxing").css("display","block");
})
$("#guanlianlianjie").click(function(){
	$(".gongjutxt").css("color","#666");
	$(this).children(".gongjutxt").css("color","#0071f7");
	$("#shujuguanlimaparea").css("display","none");
	$("#shuxing").css("display","none");
	$("#guanliandimingxinxi").css("display","block");
})
		

//地址元素管理
$(".fenleili").click(function(){
	$(this).toggleClass("fenleiactive");
})












